
package jweslley.ContestVolumes.VolumeCVI;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import jweslley.Problem;
import jweslley.Problem.Status;

/**
 * http://icpcres.ecs.baylor.edu/onlinejudge/external/106/10696.html
 *
 * @author  Jonhnny Weslley
 * @version 1.00, 21/10/2008
 */
@Problem(Status.Accepted)
public class f91 {

	public static void main(String[] args) throws IOException {
		StringBuilder out = new StringBuilder();
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int n;
		while ((n = Integer.valueOf(in.readLine())) != 0) {
			if (n <= 100)
				out.append(String.format("f91(%s) = 91\n", n));
			else
				out.append(String.format("f91(%s) = %s\n", n, n - 10));
		}
		System.out.print(out);
	}

}
